﻿using ASmile.Com;
using ASmile.Com.DictCom;
using ASmile.DBModel;
using System.Collections.Generic;

namespace ASmile.Win.DaBLL
{
    class DictBLL : BLLCrud<ArgDictSearch, Dict_Common>, IDictComBLL
    {
        protected override string ControllerName => "SysManage/DictCom";

        [WebApi("SysManage/DictComType", "GetList")]
        public ApiResultList<Dict_CommonType> GetDictTypes(string searchVal)
        {
            ArgPageData arg = new ArgPageData
            {
                SearchVal = searchVal,
                PageSize = 0
            };
            return GetResultList<Dict_CommonType>(arg);
        }
        /// <summary>
        /// 更新排序值
        /// </summary>
        public ApiResult SetSortNo(ArgSetSortNo arg)
        {
            return GetResult(arg);
        }
    }
}